package com.dongdongmovie.mapper;

import com.dongdongmovie.pojo.RoleResource;
import com.dongdongmovie.pojo.RoleResourceExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleResourceMapper {
    int countByExample(RoleResourceExample example);

    int deleteByExample(RoleResourceExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(RoleResource record);

    int insertSelective(RoleResource record);

    List<RoleResource> selectByExample(RoleResourceExample example);

    RoleResource selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") RoleResource record, @Param("example") RoleResourceExample example);

    int updateByExample(@Param("record") RoleResource record, @Param("example") RoleResourceExample example);

    int updateByPrimaryKeySelective(RoleResource record);

    int updateByPrimaryKey(RoleResource record);

    //添加多个数据
    void add(@Param("roleId") Integer roleId, @Param("roleIds")Integer[] roleIds);

    //查询resid
    List<Integer> showResId(@Param("roleId") Integer roleId);
}